import request from '@/utils/request'

export default {

  /**
   * 用户登录方法
   * @returns token信息
   */
  loginUser(user) {
    return request({
      url: '/educenter/member/login',
      method: 'post',
      data: user
    })
  },

  /**
   * 通过token获取用户信息
   * @returns 用户信息
   */
  getUserIdByToken() {
    return request({
      url: '/educenter/member/getMemberInfoByToken',
      method: 'get'
    })
  }

}